home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / amos / amoslist-1294.lzh / AMOSLIST / text0021.txt < prev    next >
Encoding:
Text File  |  1995-01-03  |  1.1 KB  |  37 lines

  1.  
  2.  
  3. > > Well, about dynamic banks...
  4. > > I thought on them for some time and cannot Paul add a 
  5. > > Banklenghtadd(bytes) command? I don't know, call it Elbnkadd(number,bytes)
  6. > > or better Elbnkadd(number of the bank, position, bytes).
  7. > > This will solve many problems.
  8. > > Poking directly with the bank's lenght is quite dangerous as you could 
  9. > > overlap memory used for something else.
  10. > > And copying the bank is quite slow if you have a large bank. 
  11. > > 
  12. > > Any ideas or comment?
  13. > > 
  14. >     How about using MakeLib extension (1.6kb) which has some nice mem.
  15. >     allocation + list handling routines ??
  16. >     Like:
  17. >     BUFFER = Ma Malloc (1024,MEM_PUBLIC)
  18. >     if BUFFER
  19. >         <Do what ever you want to do for BUFFER (1024 bytes)>
  20. >         Ma Free (BUFFER) : Rem Free BUFFER
  21. >     End If
  22. >     You can also forget Ma Free or can use Ma Free All (Which is
  23. >     automatically executed when quitting AMOSPro or compiled AMOS
  24. >     program)
  25. >     This is something I call _dynamic_ memory allocationg AMOS banks(tm)
  26. >     sucks.
  27.  
  28. Where I can find the MakeLib extension?
  29. Remember... I cannot program in C, so a simple command would be much better!
  30.  
  31. M&F
  32.  
  33.